﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace RemoteScriptingLibrary
{
    public class ToolTipHelper
    {
        public static void TrayTip(string _sText, string _sIconPath)
        {
            var trayTip = new NotifyIcon();
            trayTip.BalloonTipText = _sText;
            trayTip.Visible = true;
            trayTip.Icon = Icon.ExtractAssociatedIcon(_sIconPath); //new Icon("MyIcon.ico"); // a valid icon file
            /* trayTip.Icon =  Icon.ExtractAssociatedIcon(@"C:\Whatever\MyIcon.jpg"); //icon from a image file */
            trayTip.ShowBalloonTip(5000);
        }
    }
}
